
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="javax.servlet.http.*" %>
<%@ page import="java.util.*"%>
<html>
<head>
<title>Lista Filmow</title>
</head>
<body>
	<table>
	<tr align="center">
			<td><b>Tytul</b></td>
			<td><b>Rok</b></td>
			<td><b>Rezyser</b></td>
		</tr>
		<c:forEach var="filmEntity" items="${filmList}">
			<tr align="center"> 
			<td>${filmEntity.tytul}</td>
			<td>${filmEntity.rok}</td>
			<td>${filmEntity.rezyserBean.imie} ${filmEntity.rezyserBean.nazwisko}</td>
			</tr>
		</c:forEach>
	</table>
	<br/><br/>
	
	<a href="${pageContext.request.contextPath}/restricted/FilmAdmin">Panel admina</a>
	
</body>
</html>